<?php
namespace app\index\controller;
use app\index\model\LilyProductsDetail;
use think\cache\driver\Redis;
use think\Controller;
use think\facade\Cache;
use think\Request;
use think\captcha\Captcha;
use think\facade\Session;
use think\facade\Config;
use think\Db;

class TestStatic extends Base
{
    public function static_view($class_id = 738) {
        $data['base_data']=$this->base_data;
        $data['crumbs']=get_crumbs($class_id);/*面包屑*/
        $default_lang=config('app.default_lang');
        $data['seo_desc']="";
        if($default_lang=='en-us'){
            $data['seo_title']="High Temperature Bearings | LILY Bearing";
            $data['seo_keywords']="High Temperature Bearings | LILY Bearing";
        }
        if($default_lang=='zh-cn'){
            $data['seo_title']="高温轴承 | 养贞轴承";
            $data['seo_keywords']="高温轴承 | 养贞轴承";
        }
        $this->assign($data);
        return $this->fetch('high-temperature-bearings-static');
    }

    /**
     * 合金钢静态页面
     */
    public function alloy_static_view($class_id = 738) {
        $data['base_data']=$this->base_data;
        $data['crumbs']=get_crumbs($class_id);/*面包屑*/
        $default_lang=config('app.default_lang');
        $data['seo_desc']="";
        if($default_lang=='en-us'){
            $data['seo_title']="Alloy Steel Material | Lily Bearing";
            $data['seo_keywords']="Alloy Steel Material | Lily Bearing";
        }
        if($default_lang=='zh-cn'){
            $data['seo_title']="合金钢材料 | 养贞轴承";
            $data['seo_keywords']="合金钢材料 | 养贞轴承";
        }
        $this->assign($data);
        return $this->fetch('alloy-steel-material-static');
    }

    /**
     * 陶瓷静态页面
     */
    public function ceramic_static_view($class_id = 738) {
        $data['base_data']=$this->base_data;
        $data['crumbs']=get_crumbs($class_id);/*面包屑*/
        $default_lang=config('app.default_lang');
        $data['seo_desc']="";
        if($default_lang=='en-us'){
            $data['seo_title']="Ceramic Material | Lily Bearing";
            $data['seo_keywords']="Ceramic Material | Lily Bearing";
        }
        if($default_lang=='zh-cn'){
            $data['seo_title']="陶瓷材料 | 养贞轴承";
            $data['seo_keywords']="陶瓷材料 | 养贞轴承";
        }
        $this->assign($data);
        return $this->fetch('ceramic-static');
    }

}